package dao;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * RoleTab entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "role_tab", catalog = "leko")
public class RoleTab implements java.io.Serializable {

	// Fields

	private Integer roleId;
	private Integer userId;
	private String roleName;
	private String icon;
	private Integer lev;
	private Integer diamon;
	private Integer isOnline;
	private Timestamp lastLoginTime;
	private Integer sumLoginCount;
	private Timestamp lastLogoutTime;
	private Integer serverId;

	// Constructors

	/** default constructor */
	public RoleTab() {
	}

	/** minimal constructor */
	public RoleTab(Integer userId) {
		this.userId = userId;
	}

	/** full constructor */
	public RoleTab(Integer userId, String roleName, String icon, Integer lev,
			Integer diamon, Integer isOnline, Timestamp lastLoginTime,
			Integer sumLoginCount, Timestamp lastLogoutTime, Integer serverId) {
		this.userId = userId;
		this.roleName = roleName;
		this.icon = icon;
		this.lev = lev;
		this.diamon = diamon;
		this.isOnline = isOnline;
		this.lastLoginTime = lastLoginTime;
		this.sumLoginCount = sumLoginCount;
		this.lastLogoutTime = lastLogoutTime;
		this.serverId = serverId;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "role_id", unique = true, nullable = false)
	public Integer getRoleId() {
		return this.roleId;
	}

	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}

	@Column(name = "user_id", nullable = false)
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "role_name")
	public String getRoleName() {
		return this.roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	@Column(name = "icon")
	public String getIcon() {
		return this.icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	@Column(name = "lev")
	public Integer getLev() {
		return this.lev;
	}

	public void setLev(Integer lev) {
		this.lev = lev;
	}

	@Column(name = "diamon")
	public Integer getDiamon() {
		return this.diamon;
	}

	public void setDiamon(Integer diamon) {
		this.diamon = diamon;
	}

	@Column(name = "is_online")
	public Integer getIsOnline() {
		return this.isOnline;
	}

	public void setIsOnline(Integer isOnline) {
		this.isOnline = isOnline;
	}

	@Column(name = "last_login_time", length = 19)
	public Timestamp getLastLoginTime() {
		return this.lastLoginTime;
	}

	public void setLastLoginTime(Timestamp lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	@Column(name = "sum_login_count")
	public Integer getSumLoginCount() {
		return this.sumLoginCount;
	}

	public void setSumLoginCount(Integer sumLoginCount) {
		this.sumLoginCount = sumLoginCount;
	}

	@Column(name = "last_logout_time", length = 19)
	public Timestamp getLastLogoutTime() {
		return this.lastLogoutTime;
	}

	public void setLastLogoutTime(Timestamp lastLogoutTime) {
		this.lastLogoutTime = lastLogoutTime;
	}

	@Column(name = "server_id")
	public Integer getServerId() {
		return this.serverId;
	}

	public void setServerId(Integer serverId) {
		this.serverId = serverId;
	}

}